<template>
  <div class="itemOuter">
    <h2>{{title}}分类</h2>
    <!-- 
      如果一个插槽没有命名，则默认命名default
     -->
    <slot name="default"></slot>
    <hr />
    <slot name="footer"></slot>
  </div>
</template>

<script>
export default {
  name:"Item",
  props:["title"],
}
</script>

<style scoped>
.itemOuter {
  width: 200px;
  height: 300px;
  border: 1px solid #000;
}
.itemOuter h2 {
  background: orange;
}
</style>